package cn.yunhe.video.controller;

import cn.yunhe.video.Service.IDanmakuService;
import cn.yunhe.video.entity.Danmup;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

@Controller
public class HtmlController {
    @Autowired
    private IDanmakuService iDanmakuService;
    @RequestMapping("/test")
    public String test(){
        return "demo.ftl";
    }




   /* @RequestMapping("/testDanMu")
    public ModelAndView testDanMu(String dan){
        System.out.println(dan);
        ModelAndView mv = new ModelAndView();
        mv.setView(new MappingJackson2JsonView());
        DanMaKu danMaKu = new DanMaKu(1,"2018-06-03","sadadasasd");
        DanMaKu danMaKu1 = new DanMaKu(2,"2019-01-03","77asda4s5da");
        DanMaKu danMaKu2 = new DanMaKu(3,"2019-05-03","5a4sd654asd4");
        List list = new ArrayList();
        list.add(danMaKu);
        list.add(danMaKu1);
        list.add(danMaKu2);
        mv.addObject("danMuKu",list);
        return mv;
    }*/
}
